import React, { Component } from 'react'
import { 
    BrowserRouter, 
    Route, 
    Link, 
    Switch 
} from 'react-router-dom'

import Login from './container/Login'
import Dashboard from './container/Dashboard'

export default () => (
    <div>
        <BrowserRouter>
            <ul>
                <li><Link to="/login" >Login</Link></li>
                <li><Link to="/dashboard" >Dashboard</Link></li>
            </ul>
            <Switch>
                <Route path="/login" component={Login} />
                <Route path="/dashboard" component={Dashboard} />
            </Switch>
        </BrowserRouter>
    </div>
)
